#ifndef MatrixRow_H
#define MatrixRow_H

#include <lampe/types.h>
#include <lampe/exception/OutOfBounds.h>

namespace lampe{

template <typename T>
class MatrixRow{
private:
	T*col;
	u32 height;
public:
	MatrixRow(T*pointer,u32 size){
		col=pointer;
		height=size;
	}

	T & operator [](u32 i){
		printf("try return value %u, height=%u\n",i,height);
		BOUNDS_TEST(i,height);
		return col[i];
	}
};

}//namespace lampe

#endif // MatrixRow_H
